#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    char ch = 0;
    scanf("%c", &ch);

    printf("  %c\n", ch);
    printf(" %c%c%c\n", ch, ch, ch);
    printf("%c%c%c%c%c\n", ch, ch, ch, ch, ch);
    printf(" %c%c%c\n", ch, ch, ch);
    printf("  %c\n", ch);

    return 0;
}